package chapter03;

public class Dog3 implements Action2{
    public static void main(String[] args) {
       Dog3 d = new Dog3();
       d.black();
       d.eat();
       d.info();
       d.shout();
    }
    @Override
    public void shout() {
        System.out.println("汪汪汪");
    }

    @Override
    public void eat() {
        System.out.println("爱吃骨头");
    }

    @Override
    public void info() {
        System.out.println(Action2.NAME);
    }

    @Override
    public void black() {
        System.out.println("黄色");
    }
}
